﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
    public class LabManage
    {
        #region  Method
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public static int Add(Model.Lab model)
        {
            return DAL.LabService.Add(model);
        }
        //根据条件列出实验室
        public static List<Model.Lab> GetLabList(string strWhere="")
        {
            return DAL.LabService.GetLabList(strWhere);
        }
        //根据ID查询一条实验室
        public static Model.Lab SelectLabByID(int id)
        {
            return DAL.LabService.SelectLabByID(id);
        }
        //根据ID更新一条实验室
        public static bool Update(Model.Lab l)
        {
            return DAL.LabService.Update(l);
        }
        //根据ID删除一条实验室
        public static bool DeleteByID(int id)
        {
            return DAL.LabService.DeleteByID(id);
        }
        #endregion  Method
    }
}
